home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / intuition / makefile < prev    next >
Makefile  |  1996-10-30  |  2KB  |  89 lines

  1. # $Id: makefile,v 1.23 1996/10/30 10:19:43 aros Exp $
  2. TOP=..
  3.  
  4. SPECIAL_CFLAGS = -I/usr/include
  5.  
  6. include $(TOP)/config/make.cfg
  7.  
  8. FILES = intuition_init intuition_functable gadgets \
  9.     boolgadgets propgadgets boopsigadgets \
  10.     imageclass frameiclass icclass buttongclass gadgetclass
  11. FUNCTIONS = \
  12.     activatewindow \
  13.     addclass \
  14.     autorequest \
  15.     beginrefresh \
  16.     clearmenustrip \
  17.     closescreen \
  18.     closewindow \
  19.     disposeobject \
  20.     dogadgetmethoda \
  21.     drawborder \
  22.     drawimage \
  23.     drawimagestate \
  24.     endrefresh \
  25.     eraseimage \
  26.     freeclass \
  27.     freescreendrawinfo \
  28.     getattr \
  29.     getdefaultpubscreen \
  30.     getscreendata \
  31.     getscreendrawinfo \
  32.     lockibase \
  33.     lockpubscreen \
  34.     makeclass \
  35.     modifyidcmp \
  36.     modifyprop \
  37.     newmodifyprop \
  38.     newobjecta \
  39.     obtaingirport \
  40.     openscreen \
  41.     openscreentaglist \
  42.     openwindow \
  43.     openwindowtaglist \
  44.     pointinimage \
  45.     printitext \
  46.     refreshgadgets \
  47.     refreshglist \
  48.     refreshwindowframe \
  49.     releasegirport \
  50.     removeclass \
  51.     setattrsa \
  52.     setdefaultpubscreen \
  53.     setwindowtitles \
  54.     sizewindow \
  55.     unlockibase \
  56.     unlockpubscreen \
  57.     windowtoback \
  58.     windowtofront
  59.  
  60. all: setup \
  61.     $(foreach f,$(FILES),$(OSGENDIR)/$(f).o) \
  62.     $(foreach f,$(FUNCTIONS),$(OSGENDIR)/$(f).o)
  63.  
  64. setup :
  65.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  66.  
  67. clean:
  68.     $(RM) $(OSGENDIR) *.err
  69.  
  70. $(OSGENDIR)/%.o: %.c
  71.     $(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
  72.     if test ! -s $*.err; then rm $*.err ; else true ; fi
  73.  
  74. intuition_functable.c : $(foreach f,$(FUNCTIONS),$(f).c) \
  75.         $(TOP)/scripts/makefunctable.awk
  76.     gawk -f $(TOP)/scripts/makefunctable.awk \
  77.         --assign lib=Intuition \
  78.         $^
  79.  
  80. $(OSGENDIR)/%.d: %.c
  81.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  82.     @$(RM) $@
  83.     @touch $@
  84.     $(MKDEPEND) -p$(OSGENDIR)/
  85.  
  86. include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
  87. include $(foreach f,$(FUNCTIONS),$(OSGENDIR)/$(f).d)
  88.  
  89.